<?php

	if(isset($_COOKIE['ecitizen']) && !isset($_SESSION['user']) && !isset($_SESSION['delog'])) {
		list($id_user, $hash)= split("--", $_COOKIE['ecitizen']);
		if(User::verifyUser($id_user, $hash)){
			$_SESSION['user'] = new User($id_user);
			$_SESSION['user']->load();
		}
	}
	
?>